import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { Test1Module } from './view/test1/test1.module';

import { AppComponent } from './app.component';
import { Test2Component } from './view/test2/test2.component';
import { Test3Component } from './view/test3/test3.component';
import { from } from 'rxjs';
import { AppdirDirective } from './appdir.directive';

@NgModule({
  declarations: [ // 放置 组件，管道，指令
    AppComponent,
    Test2Component,
    Test3Component,
    AppdirDirective,
  ],
  imports: [  // 放置依赖模块，自定义模块
    BrowserModule,
    AppRoutingModule,
    Test1Module,
  ],
  providers: [  // 放置服务
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
